<h1>Flashcards</h1>

<% for flashcard in @flashcards %>

Fset: <%=h flashcard.fset_id %>
<div>
  <div class="double">
    <div class="front side"><%=h flashcard.question %></div>
    <div class="back side"><%=h flashcard.answer %></div>
  </div>
  <div class="controls">
    <%= link_to '', flashcard, { :class => "show" } %><br />
    <%= link_to '', edit_flashcard_path(flashcard), { :class => "edit" } %><br />
    <%= link_to '', flashcard, :class => "delete", :confirm => 'Are you sure?', :method => :delete %>
  </div>
</div>


<% end %>

<ul>

<li><%= link_to '', new_flashcard_path, { :class => "create" } %></li>
<li><%= link_to 'Sets', fsets_path %></li>
<li><%= link_to 'Games', games_path %></li>
<li><%= link_to 'Users', fusers_path %></li>

</ul>
